import axios from '@/libs/api.request'

/**
 * 获取表格数据
 * @return {[type]}        [description]
 */
export const fetchTableData = params => {
  return axios.request({
    url: '/api/gasMonitoring/getMicroGasPaged',
    method: 'get',
    params
  })
}

/**
 * 获取矩形方图数据
 * @return {[type]}        [description]
 */
export const fetchTreeMap = params => {
  return axios.request({
    url: '/api/meterManage/meyerQuery/getMeterGasCalssCountByYear',
    method: 'get',
    params
  })
}

/**
 * 获取右侧散点图数据
 * @return {[type]}        [description]
 */
export const fetchSdData = params => {
  return axios.request({
    url: '/api/gasMonitoring/getMicroGasSplashes',
    method: 'get',
    params
  })
}
